Use image size instead of hardcoded rects