Added basic resize feature