Initial support for client-side image resize