Image resizing module for erlang