Added image resized code from plus