Fixed wrong image size being taken