dynamic sizing for picture