select width, height from images where image_id = :revision_id