added logic to getgifs command to check image size