Fixed some issues with image aspect ratio. Added preliminary gradient features for rounded rectangles.