remove unused image size variable